<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Inserisci Prodotto</title>
    </h:head>
    <h:body>
        <h:form>

            <h:outputText value="nome"/>
            <h:inputText value="#{aggiungiProdotto.nome}"  required="true" />
            <h:outputText value="prezzo"/>
            <h:inputText value="#{aggiungiProdotto.prezzo}" required="true"/>
            <h:outputText value="marca"/>
            <h:inputText value="#{aggiungiProdotto.marca}" required="true"/>
            <h:outputText value="categoria"/>
            <h:inputText value="#{aggiungiProdotto.categoria}" required="true"/>
            <h:outputText value="sottocategoria"/>
            <h:inputText value="#{aggiungiProdotto.sottocategoria}" required="true" />
            
            <h:commandButton value="Insert" action="#{aggiungiProdotto.aggiungi}" type="submit"  />
        </h:form>
    </h:body>
</html>

